#pragma once
#define pi 3.14
int main()
{
	float r = 0, v1 = 0, v2 = 0;
	scanf("%f", &r);
	v1 = 4.0 / 3 * pi * r * r * r;
	v2 = (4.0 * pi * r * r * r) / 3;
	printf("%lf %lf", v1, v2);
	return 0;
}
